<script setup>
import { reactive } from 'vue'

const formInline = reactive({
  user: '',
  region: '',
  date: '',
})

const onSubmit = () => {
  console.log('submit!')
}
</script>

<template>
<div>
  <div style="margin-bottom: 10px">商品管理（全部）</div>
  <header>
    <div>
      <el-form :inline="true" :model="formInline" class="demo-form-inline">
        <el-form-item label="商品信息：">
          <el-input v-model="formInline.user" placeholder="请输入商品ID" clearable />
        </el-form-item>
        <el-form-item label="商品名称：">
          <el-input v-model="formInline.user" placeholder="请输入商品名称" clearable />
        </el-form-item>
      </el-form>
    </div>
    <div>
      <el-form :inline="true" :model="formInline" class="demo-form-inline">

        <el-form-item label="提审时间">
          <el-date-picker
              style="width: 200px;"
              v-model="value2"
              type="daterange"
              start-placeholder="开始时间"
              end-placeholder="结束时间"
              :default-value="[new Date(2010, 9, 1), new Date(2010, 10, 1)]"
          />
        </el-form-item>
        <el-form-item label="提审时间">
          <el-date-picker
              style="width: 200px;"
              v-model="value2"
              type="daterange"
              start-placeholder="开始时间"
              end-placeholder="结束时间"
              :default-value="[new Date(2010, 9, 1), new Date(2010, 10, 1)]"
          />
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">查询</el-button>
          <el-button>重置</el-button>
        </el-form-item>
      </el-form>

    </div>
    <el-button style="width: 120px;">快速审核通道</el-button>
  </header>
  <main>
    <div class="box1">
      <el-button>刷新页面</el-button>
      <el-button>刷新列表数据</el-button>
    </div>
    <div class="box2">

    </div>
  </main>
</div>
</template>

<style scoped lang="scss">
header{
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 10px;
  margin-bottom:10px ;
}
main{
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  .box1{
    display: flex;
    justify-content: flex-end;
   el-button{
     width: 100px;
   }
    .box2{

    }
  }
}
</style>